<!-- $Id: announcement_list.htm 14216 2008-03-10 02:27:21Z testyang $ -->

<?php if ($this->_var['full_page']): ?>

<?php echo $this->fetch('pageheader.htm'); ?>

<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,listtable.js')); ?>

 <!--<div class="form-div">

  <form action="javascript:search_ad()" name="searchForm">

    <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />

    位置 <select name="position_id">

    <option value="">请选择</option>

     <?php $_from = $this->_var['ad_position_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'position');if (count($_from)):
    foreach ($_from AS $this->_var['position']):
?>

      <option value="<?php echo $this->_var['position']['position_id']; ?>"><?php echo $this->_var['position']['position_name']; ?></option>

      <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>

    </select>

    &nbsp;&nbsp;站点&nbsp;&nbsp;

   <select name="city_id" id="selCities" >

          <option value=''>请选择</option>

            <?php $_from = $this->_var['cities']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'region');if (count($_from)):
    foreach ($_from AS $this->_var['region']):
?>

              <option value="<?php echo $this->_var['region']['region_id']; ?>" <?php if ($this->_var['region']['region_id'] == $this->_var['announcement']['city_id']): ?>selected="selected"<?php endif; ?>><?php echo $this->_var['region']['region_name']; ?></option>

            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>



        </select>

  

    <input type="submit" value="<?php echo $this->_var['lang']['button_search']; ?>" class="button" />

  </form> 

</div>-->
<a href="announcement.php?act=add" >添加公告</a>

<form method="post" action="" name="listForm">

<div class="list-div" id="listDiv">

<?php endif; ?>



<table cellpadding="3" cellspacing="1">

  <tr>

    <th><a href="javascript:listTable.sort('id'); ">编号</a><?php echo $this->_var['sort_id']; ?></th>

    <th>公告标题</th>
	
	<th>添加时间</th>
	
    <th><?php echo $this->_var['lang']['handler']; ?></th>

  </tr>

  <?php $_from = $this->_var['announcement_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'list');if (count($_from)):
    foreach ($_from AS $this->_var['list']):
?>

  <tr>
    <td align="center" class="first-cell"><?php echo $this->_var['list']['id']; ?></td>

    <td align="center"><span><?php echo htmlspecialchars($this->_var['list']['title']); ?></span></td>
	<td align="center"><?php echo $this->_var['list']['add_time']; ?></td>
    <td align="center" class="bnt_a"><span>

      <a href="announcement.php?act=edit&id=<?php echo $this->_var['list']['id']; ?>" title="<?php echo $this->_var['lang']['edit']; ?>"><?php echo $this->_var['lang']['edit']; ?></a>

    </td>

  </tr>

  <?php endforeach; else: ?>

    <tr><td colspan="6" align="center" class="no-records">还没有公告！！！</td></tr>

  <?php endif; unset($_from); ?><?php $this->pop_vars();; ?>

  <tr>

    <td align="right" nowrap="true" colspan="6"><?php echo $this->fetch('page.htm'); ?></td>

  </tr>

</table>



<?php if ($this->_var['full_page']): ?>

</div>

</form>

<script type="text/javascript" language="JavaScript">

  listTable.recordCount = <?php echo $this->_var['record_count']; ?>;

  listTable.pageCount = <?php echo $this->_var['page_count']; ?>;



  <?php $_from = $this->_var['filter']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>

  listTable.filter.<?php echo $this->_var['key']; ?> = '<?php echo $this->_var['item']; ?>';

  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>

  

  onload = function()

  {

    // 开始检查订单

    startCheckOrder();

  }

  

</script>

<?php echo $this->fetch('pagefooter.htm'); ?>

<?php endif; ?>

